﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="addcustommer.aspx.cs" Inherits="admin_funcion_addcustommer" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register src="../usercontrol/category.ascx" tagname="category" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceLeft" Runat="Server">
    <uc1:category ID="category1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="portlet x9">
    <div class="portlet-header"><h4>Thêm mới tài khoản khách hàng</h4></div>
    <div class="portlet-content">
          <div class="row">
         <div class="adrow">
            <div class="adlrow">(*)bắt buộc</div>
            <div class="adrrow">
                <asp:Label ID="Lthongbao" runat="server" Text=""></asp:Label>
            </div>
         </div>
        <div class="adrow">
            <div class="adlrow">Họ tên:</div>
            <div class="adrrow">
                <asp:TextBox ID="txthoten" runat="server" Width="200px"></asp:TextBox> 
                <asp:RequiredFieldValidator ID="Rfhoten" ControlToValidate="txthoten" runat="server" ErrorMessage="(*)"></asp:RequiredFieldValidator>     
            </div>
        </div>
         <div class="adrow">
            <div class="adlrow">Địa chỉ:</div>
            <div class="adrrow">
                <asp:TextBox ID="txtdiachi" runat="server" Width="300px"></asp:TextBox>      
                <asp:RequiredFieldValidator ID="Rfdiachi" runat="server" ErrorMessage="(*)" 
                    ControlToValidate="txtdiachi"></asp:RequiredFieldValidator>
           </div>
        
        </div>
         <div class="adrow">
            <div class="adlrow">Điện thoại:</div>
            <div class="adrrow">
                <asp:TextBox ID="txtdienthoai" runat="server" Width="200px" MaxLength="12"></asp:TextBox> 
                <asp:RequiredFieldValidator ID="Rfdienthoai" runat="server" ErrorMessage="(*)" 
                    ControlToValidate="txtdienthoai"></asp:RequiredFieldValidator>   
                <asp:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" runat="server" TargetControlID="txtdienthoai" 
                    FilterType="Numbers" Enabled="true" >
                </asp:FilteredTextBoxExtender>
            </div>
        
        </div>
         <div class="adrow">
            <div class="adlrow">Email:</div>
            <div class="adrrow">
                <asp:TextBox ID="txtemail" runat="server" Width="250px"></asp:TextBox>   
                <asp:RegularExpressionValidator ID="rglemail" runat="server" 
                    ErrorMessage="Email không đúng" ControlToValidate="txtemail" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    Display="Dynamic"></asp:RegularExpressionValidator>            
            </div>
        
        </div>
        <div class="adrow">
            <div class="adlrow">Thành phố:</div>
            <div class="adrrow">
                <asp:TextBox ID="txtthanhpho" runat="server" Width="200px"></asp:TextBox> 
                 <asp:RequiredFieldValidator ID="Rfthanhpho" runat="server" ErrorMessage="(*)" 
                    ControlToValidate="txtthanhpho"></asp:RequiredFieldValidator>              
            </div>
        </div>
        <div class="adrow">
            <div class="adlrow">Tên đăng nhập:</div>
            <div class="adrrow">
                <asp:TextBox ID="txttendangnhap" runat="server" Width="200px"></asp:TextBox>   
                 <asp:RequiredFieldValidator ID="rftendangnhap" runat="server" 
                    ErrorMessage="(*)" ControlToValidate="txttendangnhap"></asp:RequiredFieldValidator>            
            </div>
        
        </div>
        <div class="adrow">
            <div class="adlrow">Mật khẩu:</div>
            <div class="adrrow">
                <asp:TextBox ID="txtmatkhau" runat="server" Width="200px" TextMode="Password"></asp:TextBox>
                 <asp:RequiredFieldValidator ID="rfmatkhau" runat="server" ErrorMessage="(*)" 
                    ControlToValidate="txtmatkhau"></asp:RequiredFieldValidator>    
            </div>
        
        </div>
        <div class="adrow">
            <div class="adlrow">Xác nhận lại mật khẩu:</div>
            <div class="adrrow">
                <asp:TextBox ID="txtxacnhanmk" runat="server" Width="200px" TextMode="Password"></asp:TextBox>               
                <asp:CompareValidator ID="CompareValidator1" runat="server" 
                    ControlToCompare="txtmatkhau" ControlToValidate="txtxacnhanmk" 
                    ErrorMessage="Không khẩu không trùng"></asp:CompareValidator>
            </div>
        
        </div>
        <div class="adrow">
            <div class="adlrow">Mã xác nhận:</div>
            <div class="adrrow" style="float: left">
                <div style="float: left">
                    <asp:TextBox ID="txtcapcha" runat="server" Width="100px"></asp:TextBox>
                </div>     
                <div class ="capcha" style=" height:20px; width: 60px; float: left; background: #e0e0e0; padding: 2px; margin:2px;">
                    <asp:Literal ID="macapcha" runat="server"></asp:Literal>
                </div>         
            </div>
        
        </div>
     
         <div class="adrow" style="border-top: solid 1px #777">
            <div class="adlrow"></div>
            <div class="adrrow" style="text-align:center" >
                <asp:Button ID="btndangky" CssClass="btn btn-person" runat="server" Text="Đồng Ý" 
                    onclick="btndangky_Click" />
                           
            </div>
        
        </div>
   
</div>
    
    
    </div>
</div>
</asp:Content>

